package com.hdoit.apollo.web.billing.modelconfig;

import com.tennetcn.core.common.enums.regular.MathRegularExpressions;
import com.tennetcn.web.component.attribute.DisplayNameAttribute;
import com.tennetcn.web.component.attribute.RegularExpressionAttribute;
import com.tennetcn.web.component.attribute.base.ModelMetadataAttributeConfiguration;

/**
 * @author      tancongzhu
 * @email       
 * @createtime  2018年05月31日 16:34:28
 * @comment
 */
public class BillingRecordConfig extends ModelMetadataAttributeConfiguration{
    public BillingRecordConfig(){
        this.setProperty("billingId")
            .hasAttribute(new DisplayNameAttribute("订单Id"));

        this.setProperty("operateNum")
            .hasAttribute(new DisplayNameAttribute("操作数量"))
            .hasAttribute(new RegularExpressionAttribute(MathRegularExpressions.naturalNumber));

        this.setProperty("operateMoney")
            .hasAttribute(new DisplayNameAttribute("操作金额"));

        this.setProperty("type")
            .hasAttribute(new DisplayNameAttribute("类型"));

        this.setProperty("outStockId")
            .hasAttribute(new DisplayNameAttribute("出库Id"));

        this.setProperty("shopId")
            .hasAttribute(new DisplayNameAttribute("门店id"));

        this.setProperty("comment")
            .hasAttribute(new DisplayNameAttribute("备注"));

    }
}
